<template>
    <div class="finishModal">
        <div class="finish-inner">
            <img src="../../assets/img/join/success.png" alt="" srcset="" />
            <div class="p1">已完成志愿选择</div>
            <div class="p2">提交日期：{{ submitTime }}</div>
            <div class="p3">
                每人仅允许填写一次志愿，请根据实际情况填写，提交成功后无法自助修改。如有特殊情况请及时与对应HR沟通。
            </div>
            <a-button type="primary" @click="$emit('closeFinishModal')">我知道了</a-button>
        </div>
    </div>
</template>

<script setup lang='ts'>
import { useStore } from '@/store';
const store = useStore();
const { resumeInfo } = store as any
const submitTime = ref<string>("")
onMounted(() => {
    submitTime.value = resumeInfo.resumesTime
})

</script>

<style lang="scss" scoped>
.finishModal {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    z-index: 10;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;

    .finish-inner {
        width: 560px;
        height: 432px;
        background: #ffffff;
        border-radius: 3px 3px 3px 3px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        img {
            width: 104px;
            height: 104px;
        }

        .p1 {
            color: #333333;
            line-height: 20px;
            text-align: center;
            font-size: 17px;
            margin: 24px 0 15px 0;
        }

        .p2 {
            font-weight: 400;
            font-size: 16px;
            color: #333333;
            line-height: 19px;
        }

        .p3 {
            width: 485px;
            height: 64px;
            font-weight: 400;
            font-size: 16px;
            color: #b3c0c8;
            line-height: 32px;
            text-align: center;
            font-style: normal;
            text-transform: none;
            margin: 12px 0 32px 0;
        }
    }
}
</style>